import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
import _omit from "lodash/omit";

/**
 * index
 * @date 2018/9/28

 */
import React from 'react';
import ComposeTableEditModal from "./ComposeTableEditModal";

var ComposeTable = /*#__PURE__*/function (_React$PureComponent) {
  _inherits(ComposeTable, _React$PureComponent);

  var _super = _createSuper(ComposeTable);

  function ComposeTable() {
    _classCallCheck(this, ComposeTable);

    return _super.apply(this, arguments);
  }

  _createClass(ComposeTable, [{
    key: "render",
    value: function render() {
      var composeTableProps = _omit(this.props, ['editMode']);

      return /*#__PURE__*/React.createElement(ComposeTableEditModal, composeTableProps);
    }
  }]);

  return ComposeTable;
}(React.PureComponent);

export { ComposeTable as default };